package com.tfblog.blog.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tfblog
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tf_blog")
@ApiModel(value="Blog对象", description="")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "博客id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "赞赏是否开启")
    private Boolean appreciation;

    @ApiModelProperty(value = "评论是否开启")
    private Boolean commentabled;

    @ApiModelProperty(value = "博客内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "博客描述")
    private String description;

    @ApiModelProperty(value = "博客首图")
    private String firstPicture;

    @ApiModelProperty(value = "转载/原创")
    private String flag;

    @ApiModelProperty(value = "发布是否开启")
    private Boolean published;

    @ApiModelProperty(value = "推荐是否开启(是否推荐)")
    private Boolean recommend;

    @ApiModelProperty(value = "转载声明是否开启")
    private Boolean shareStatement;

    @ApiModelProperty(value = "博客的标题")
    private String title;

    @ApiModelProperty(value = "浏览次数")
    private Integer views;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "绑定的分类id")
    private Long typeId;

    @ApiModelProperty(value = "绑定的用户id")
    private Long userId;


}
